﻿#ifndef CONTROLER_H
#define CONTROLER_H
#include <QObject>
#include <QDebug>
#include <QThread>
#include <QEventLoop>
#include "audiocontroler.h"

#include "videocontroler.h"

class Controler : public QObject
{
    Q_OBJECT
public:
    explicit Controler(QObject *parent = 0);

    //
    bool AudioControllerInit();

    bool VideoControllerInit();
    bool start_ObstacleDetection();
    bool stop_ObstacleDetection();

signals:
    void sendSpeechTeskToAudioController_sig(QString str, int priority);

public slots:
    void sendSpeechTeskToAudioController_slot(QString str,int priority);



private:
    AudioControler* audioControler;

    VideoControler* videoControler;
    QThread* videoThread;

};

#endif // CONTROLER_H
